<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>用户登录</title>
<script type="text/javascript">

	function refreshPic()
	{
		console.log("刷新");
		
		// 找到图片对象
		var img = document.getElementById("chkCodeImg");
		// 修改src属性
		img.src = "http://localhost:8011/05-Response/checkImage?" +Math.random()*100000; ;
	}
</script>
</head>
<body>
<h1>用户登陆</h1>
<form action="loginchk" method="get">
用户名:<input type="text" name="username" ><br />
密码:<input type="text" name="password" ><br />
验证码:<input type="text" name="chkCode">
<img id="chkCodeImg" src="http://localhost:8011/05-Response/checkImage" onclick="refreshPic()"/>
<br />
<input type="submit" value="登陆" />
</form>


</body>
</html>
